$(function(){
  let $btn = $('input'),
      num  = toLocaleString.getItem('num') || 0;

  $btn.val(`被按了 ${num} 次`);

  $btn.click(() => {
    localStorage.setItem('num',++num);
    $btn.val(`被按了 ${num} 次`);

  })
});
